#include "bullet.h"



bullet::bullet(QPoint pos, QPixmap bulletimg, int type)
{
    this->setPos(pos);
    this->setPixmap(bulletimg);
    this->mybullettype=type;
    bulletspeed=6;
}

void bullet::bulletmove(QPoint dir)
{
    this->moveBy(dir.x()*bulletspeed,dir.y()*bulletspeed);
}
